package com.zdd.ehe.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.DiseaseData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zdd.ehe.entity.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-24
 */
public interface DiseaseDataMapper extends BaseMapper<DiseaseData> {

    /**
     * 分页查询病虫害列表
     * @param page
     * @return
     */
    Page<DiseaseData> getAllDiseaseByPage(Page<DiseaseData> page);

    /**
     * 获取病虫害列表
     *
     * @param name
     * @return
     */
    public List<String> getDiseaseData(String name);


    /**
     * 更新病虫害信息
     * @param diseaseData
     * @return
     */
    int update(DiseaseData diseaseData);


}
